package com.qf.cloud2203.domain.constants;


/**
 * 常量类
 */
public class Constants {


    // 生成JWT tokne使用的 密钥（salt）
    public static final String SECRET = "qfsyjava2203666";

    // 接口成功响应的状态码
    public static final Integer SUCCESS_CODE = 10000;
    public static final String SUCCESS_MSG = "OK";

    // 接口失败响应状态码
    public static final Integer ERROR_CODE = -10000;
    public static final String ERROR_MSG = "ERROR";

    // 盐的长度
    public static final Integer SALT_LENTH = 8;

    // shiro加密时hash次数
    public static final Integer HASH_TIMES = 1024;

    // jwt本地缓存中存储时间的key的名字
    public static final String JWT_CACHE_TIME_KEY = "time";
    public static final String JWT_CACHE_TOKEN_KEY = "token";

    public static final String REDIS_JWT_PRE = "vote:jwt:";
    public static final String VOTE_INTERVAL_PRE = "vote:interval:";
    public static final String VOTE_DETAIL_LIST = "vote:detail";
    public static final String VOTE_RESULT_ZSET = "vote:result";
}
